<template>
  <div id=''>
    <h1>路由组件传参</h1>
    <RouterLink :to="{ name: 'props' }"></RouterLink>
    <RouterView></RouterView>
  </div>
</template>

<script lang='ts'>
export default {
  name: 'vue',
}
</script>

<script lang='ts' setup>
import { ref } from 'vue';
const id = ref({
  name: '王小桃',
  age: 16,
  sex: '女'
})
</script>

<style lang='scss' scoped></style>
